Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

class Microsoft.​AspNetCore.​Authentication.​RemoteAuthenticationHandler<​TOptions>

Assembly: Microsoft.AspNetCore.Authentication

Inheritance: object → AuthenticationHandler<​TOptions> → RemoteAuthenticationHandler

Implemented Interfaces

An opinionated abstraction for an <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationHandler`1" /> that performs authentication using a separately hosted provider.

Properties

protected string
SignInScheme
The authentication scheme used by default for signin.
Events
The handler calls methods on the events which give the application control at certain points where processing is occurring. If it is not provided a default instance is supplied which does nothing when the methods are called.
Scheme
public TOptions
Options
Context
Request
Response
protected Http.​PathString
OriginalPath
protected Http.​PathString
OriginalPathBase
protected ISystemClock
Clock
TimeProvider
OptionsMonitor
protected object
Events
protected string
ClaimsIssuer
protected string
CurrentUri

Methods

CreateEventsAsync​()
ShouldHandleRequestAsync​()
Gets a value that determines if the current authentication request should be handled by <see cref="M:Microsoft.AspNetCore.Authentication.RemoteAuthenticationHandler`1.HandleRequestAsync" /> .
Returns <see langword="true" /> to handle the operation, otherwise <see langword="false" /> .
HandleRequestAsync​()
Handles the current authentication request.
Returns <see langword="true" /> if authentication was handled, otherwise <see langword="false" /> .
HandleRemoteAuthenticateAsync​()
Authenticate the user identity with the identity provider. The method process the request on the endpoint defined by CallbackPath.
HandleAuthenticateAsync​()
HandleForbiddenAsync​(AuthenticationProperties properties)
protected void
GenerateCorrelationId​(AuthenticationProperties properties)
Produces a cookie containing a nonce used to correlate the current remote authentication request.
protected bool
ValidateCorrelationId​(AuthenticationProperties properties)
Validates that the current request correlates with the current remote authentication request.
HandleAccessDeniedErrorAsync​(AuthenticationProperties properties)
Derived types may override this method to handle access denied errors.
Returns The <see cref="T:Microsoft.AspNetCore.Authentication.HandleRequestResult" /> .
properties The <see cref="T:Microsoft.AspNetCore.Authentication.AuthenticationProperties" /> .
InitializeAsync​(AuthenticationScheme scheme, Http.​HttpContext context)
Inherited from AuthenticationHandler<​TOptions>
InitializeEventsAsync​()
Inherited from AuthenticationHandler<​TOptions>
InitializeHandlerAsync​()
Inherited from AuthenticationHandler<​TOptions>
protected string
BuildRedirectUri​(string targetPath)
Inherited from AuthenticationHandler<​TOptions>
protected string
ResolveTarget​(string scheme)
Inherited from AuthenticationHandler<​TOptions>
AuthenticateAsync​()
Inherited from AuthenticationHandler<​TOptions>
HandleAuthenticateOnceAsync​()
Inherited from AuthenticationHandler<​TOptions>
HandleAuthenticateOnceSafeAsync​()
Inherited from AuthenticationHandler<​TOptions>
HandleChallengeAsync​(AuthenticationProperties properties)
Inherited from AuthenticationHandler<​TOptions>
ChallengeAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​TOptions>
ForbidAsync​(AuthenticationProperties? properties)
Inherited from AuthenticationHandler<​TOptions>
public bool
Equals​(object obj)
Inherited from object
protected void
Finalize​()
Inherited from object
public int
GetHashCode​()
Inherited from object
GetType​()
Inherited from object
protected object
MemberwiseClone​()
Inherited from object
public string
ToString​()
Inherited from object